/**
 * Created by hjy on 2017/8/27.
 */
var https = require('https')
var fs = require('fs')

var options = {
    key : fd.readFileSynv('ssh_key.pem'),
    cert : fs.reaqdFileSync('ssh_cert.pem')
}

https
    .createServer(options,function (req,res) {
        res.writeHead(200)
        res.end('Hello Imooc')
    })
    .listen(8090)